/**
 * Created by aa on 2016/8/25.
 */

'use strict';
let Redux=require('redux');
let utils=require('../common/utils.js');
let cr=utils.cr;
let actions=require('../actions/about');

var reducers=Redux.combineReducers({
    //发展历程
    processItems:cr([],{[actions.RECEIVE_PROCESS_ITEMS](state,action){
        return action.processItems;
    }
    }),
    //荣誉
    egoItems:cr([],{[actions.RECEIVE_EGO_ITEMS](state,action){
        return action.egoItems;
    }
    }),
    //boss
    leaderItems:cr([],{[actions.RECEIVE_LEADER_ITEMS](state,action){
        return action.leaderItems;
    }
    }),
    //团队
    teamItems:cr([],{[actions.RECEIVE_TEAM_ITEMS](state,action){
        return action.teamItems;
    }
    }),
    positionItems:cr([],{[actions.RECEIVE_POSITION_ITEMS](state,action){
        return action.positionItems;
    }
    }),
    newsDetail:cr([],{[actions.RECEIVE_NEWS_DETAIL](state,action){
        return action.newsDetail;
    }
    })
});

module.exports=reducers;
